package com.timkj.zgyd.entity;

import com.timkj.zgyd.enums.ResultEnums;
import lombok.Data;

/**
 * @author : liji
 * @date : 2020-09-01 14:01
 * http返回
 */
@Data
public class ResultVO {
    /** 错误码. */
    private Integer code;

    /** 提示信息. */
    private String msg;

    /** 具体内容. */
    private Object data;

    public ResultVO() {
    }

    public ResultVO(ResultEnums resultEnums, Object data){
        this.code=resultEnums.getCode();
        this.msg=resultEnums.getMsg();
        this.data=data;
    }
}
